package chuangyi.com.org.DOMIHome.adapter;

import android.content.Context;
import android.databinding.ObservableArrayList;

import java.util.List;

import me.maxwin.view.XListView;

/**
 * Created by zxh on 16/11/25.
 */

public class XListBindingAdapter<T extends BindingListItem> extends ListBindingAdapter
        implements XListAdapterInterface {
    private XListView xListView;
    private XListView.IXListViewListener xListViewListener;

    public XListView.IXListViewListener getxListViewListener() {
        return xListViewListener;
    }

    public void setxListViewListener(XListView.IXListViewListener xListViewListener) {
        this.xListViewListener = xListViewListener;
    }

    public XListView getxListView() {
        return xListView;
    }


    public void setxListView(XListView xListView) {
        this.xListView = xListView;
    }

    @Override
    public void remove(BindingListItem item) {
        super.remove(item);
    }

    /**
     * 新建绑定列表适配器
     *
     * @param context
     * @param variableId
     */
    public XListBindingAdapter(Context context, int variableId, List<Integer> viewTypeList) {
        super(context, variableId, viewTypeList);
    }

    public XListBindingAdapter(Context context, int variableId) {
        this(context, variableId, null);
    }
}
